/**
 * Copyright (c) subnew
 * Licensed under the GPL;
 * @email:joseanluo@gmail.com
 * @Title: SysOperatorInfo.java
 * @Package com.subnew.copyman.modules.sys.entity
 */
package com.subnew.mango.modules.sys.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.subnew.mango.frame.dao.entity.BaseEntity;


/**
 * 系统操作员详细信息表
 *
 * @author JoseanLuo
 * @date 2014年9月17日 下午2:38:10
 * @version V1.0<br>
 *          V2.0 关联关系加入 20141223 
 */
@Entity
@Table(name = "sys_operatorinfo")
public class SysOperatorInfo  extends BaseEntity{
	/**
	 * 真实姓名
	 */
	private String name;
	/**
	 * 性别
	 */
	private Integer sex;
	/**
	 * 身份证
	 */
	private String idcard;
	/**
	 * 地址
	 */
	private String addr;
	/**
	 * 邮编
	 */
	private String postcode;
	/**
	 * 电话
	 */
	private String phone;
	/**
	 * 手机
	 */
	private String mphone;
	/**
	 * 电邮
	 */
	private String email;
	/**
	 * 描述
	 */
	private String memo;
	/**
	 * 所属操作员
	 */
	private SysOperator sysOperator;
	
	
	
	

	@Column(name = "name", length = 20)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "sex")
	public Integer getSex() {
		return this.sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	@Column(name = "idcard", length = 20)
	public String getIdcard() {
		return this.idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	@Column(name = "addr")
	public String getAddr() {
		return this.addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	@Column(name = "postcode", length = 10)
	public String getPostcode() {
		return this.postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	@Column(name = "phone", length = 20)
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "mphone", length = 20)
	public String getMphone() {
		return this.mphone;
	}

	public void setMphone(String mphone) {
		this.mphone = mphone;
	}

	@Column(name = "email", length = 30)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "memo")
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
	/**
	 * @return the operator
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "rid")
	public SysOperator getSysOperator() {
		return this.sysOperator;
	}

	public void setSysOperator(SysOperator sysOperator) {
		this.sysOperator = sysOperator;
	}
}
